import request from '@/utils/request'

// 组list
export function getMenuLists (params) {
  return request({
    url: '/admin/sys/permission/menu/findList',
    method: 'get',
    params
  })
}
// 组list
export function groupList(data) {
  return request({
    url: `/template/codeGroup/list`,
    method: 'post',
    data
  })
}
//模板list
export function templatesList(id) {
    return request({
      url: `/template/code/list?groupId=${id}`,
      method: 'post',
    })
}

//默认组件管理新增
export function defaultClassGenerateCom(data) {
  return request({
    url: `/component/defaultClass/generateCom`,
    method: 'post',
    data
  })
}
